﻿@model IEnumerable<wUniApp.MVC.App_Data.Product>

@{
    ViewBag.Title = wUniApp.MVC.App_GlobalResources.Resources.Index;
    Layout = "~/Views/Shared/_Layout.cshtml";
}

@Html.GetTitle()

  <p>
    @Html.CreateNew()
  </p>
  <table class="table">
    <tr>
      <th>
        @Html.DisplayNameFor(model => model.Name)
      </th>
      <th>
        @Html.DisplayNameFor(model => model.Description)
      </th>
      <th>
        @Html.DisplayNameFor(model => model.MonthlyPrice)
      </th>
      <th></th>
    </tr>

    @foreach (var item in Model)
    {
      <tr>
        <td>
          @Html.DisplayFor(modelItem => item.Name)
        </td>
        <td>
          @Html.DisplayFor(modelItem => item.Description)
        </td>
        <td>
          @Html.DisplayFor(modelItem => item.MonthlyPrice)
        </td>
        <td>
          @Html.EDDButtons(item.Id)
        </td>
      </tr>
    }

  </table>
